#ifndef OMG_TDDS_CORE_STATUS_STATUS_HPP_
#define OMG_TDDS_CORE_STATUS_STATUS_HPP_

/* Copyright (c) 2009-2010, Real-Time Innovations, Inc.
 * Copyright (c) 2010, Object Management Group, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 * 
 * - Redistributions of source code must retain the above copyright notice,
 *   this list of conditions and the following disclaimer.
 * - Redistributions in binary form must reproduce the above copyright
 *   notice, this list of conditions and the following disclaimer in the
 *   documentation and/or other materials provided with the distribution.
 * - Neither the names of the above copyright holders nor the names of their
 *   contributors may be used to endorse or promote products derived from
 *   this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL A COPYRIGHT HOLDER OR CONTRIBUTOR BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */


namespace tdds { namespace core { namespace status {

template <typename D>
class InconsistentTopicStatus : public dds::core::Value<D> {
    OMG_DDS_VALUE_TYPE(InconsistentTopicStatus)

public:
    int32_t total_count() const {
        return this->delegate().total_count();
    }

    int32_t total_count_change() const {
        return this->delegate().total_count_change();
    }
};

template <typename D>
class SampleLostStatus : public dds::core::Value<D> {
    OMG_DDS_VALUE_TYPE(SampleLostStatus)
    
public:
    int32_t total_count() const {
        return this->delegate().total_count();
    }

    int32_t total_count_change() const {
        return this->delegate().total_count_change();
    }
};


template <typename D>
class SampleRejectedStatus : public dds::core::Value<D> {
    OMG_DDS_VALUE_TYPE(SampleRejectedStatus)

public:
    int32_t total_count() const {
        return this->delegate().total_count();
    }

    int32_t total_count_change() const {
        return this->delegate().total_count_change();
    }

    const dds::core::status::SampleRejectedState last_reason() const {
        return this->delegate().last_reason();
    }

    const dds::core::InstanceHandle last_instance_handle() const {
        return this->delegate().last_instance_handle();
    }
};

template <typename D>
class LivelinessLostStatus : public dds::core::Value<D> {
    OMG_DDS_VALUE_TYPE(LivelinessLostStatus)
    
public:
    int32_t total_count() const {
        return this->delegate().total_count();
    }

    int32_t total_count_change() const {
        return this->delegate().total_count_change();
    }
};

template <typename D>
class LivelinessChangedStatus : public dds::core::Value<D> {
    OMG_DDS_VALUE_TYPE(LivelinessChangedStatus)
    
public:
    int32_t alive_count() const {
        return this->delegate().alive_count();
    }

    int32_t not_alive_count() const {
        return this->delegate().not_alive_count();
    }

    int32_t alive_count_change() const {
        return this->delegate().alive_count();
    }

    int32_t not_alive_count_change() const {
        return this->delegate().not_alive_count();
    }

    const dds::core::InstanceHandle last_publication_handle() const {
        return this->delegate().last_instance_handle();
    }
};

template <typename D>
class OfferedDeadlineMissedStatus : public dds::core::Value<D> {
    OMG_DDS_VALUE_TYPE(OfferedDeadlineMissedStatus)

public:
    int32_t total_count() const {
        return this->delegate().total_count();
    }

    int32_t total_count_change() const {
        return this->delegate().total_count_change();
    }

    const dds::core::InstanceHandle last_instance_handle() const {
        return this->delegate().last_instance_handle();
    }
};

template <typename D>
class RequestedDeadlineMissedStatus : public dds::core::Value<D> {
    OMG_DDS_VALUE_TYPE(RequestedDeadlineMissedStatus)
    
public:
    int32_t total_count() const {
        return this->delegate().total_count();
    }

    int32_t total_count_change() const {
        return this->delegate().total_count_change();
    }

    const dds::core::InstanceHandle last_instance_handle() const {
        return this->delegate().last_instance_handle();
    }
};



template <typename D>
class OfferedIncompatibleQosStatus : public dds::core::Value<D>{
    OMG_DDS_VALUE_TYPE(OfferedIncompatibleQosStatus)

public:
    int32_t total_count() const {
        return this->delegate().total_count();
    }

    int32_t total_count_change() const {
        return this->delegate().total_count_change();
    }

    dds::core::policy::QosPolicyId last_policy_id() const {
        return this->delegate().last_policy_id();
    }

    const dds::core::policy::QosPolicyCountSeq policies() const;

    dds::core::policy::QosPolicyCountSeq&
    policies(dds::core::policy::QosPolicyCountSeq& dst) const;
};

template <typename D>
class RequestedIncompatibleQosStatus : public dds::core::Value<D> {
    OMG_DDS_VALUE_TYPE(RequestedIncompatibleQosStatus)

public:
    int32_t total_count() const {
        return this->delegate().total_count();
    }

    int32_t total_count_change() const {
        return this->delegate().total_count_change();
    }

    dds::core::policy::QosPolicyId last_policy_id() const {
        return this->delegate().last_policy_id();
    }

    const dds::core::policy::QosPolicyCountSeq policies() const {
        return this->delegate().policies();
    }

    dds::core::policy::QosPolicyCountSeq&
    policies(dds::core::policy::QosPolicyCountSeq& dst) const;
};

template <typename D>
class PublicationMatchedStatus : public dds::core::Value<D> {
    OMG_DDS_VALUE_TYPE(PublicationMatchedStatus)
    
public:
    int32_t total_count() const {
        return this->delegate().total_count();
    }

    int32_t total_count_change() const {
        return this->delegate().total_count_change();
    }

    int32_t current_count() const {
        return this->delegate().current_count();
    }

    int32_t current_count_change() const {
        return this->delegate().current_count_change();
    }

    const dds::core::InstanceHandle last_subscription_handle() const {
        return this->delegate().last_subscription_handle();
    }
};

template <typename D>
class SubscriptionMatchedStatus : public dds::core::Value<D> {
    OMG_DDS_VALUE_TYPE(SubscriptionMatchedStatus)
    
public:
    int32_t total_count() const {
        return this->delegate().total_count();
    }

    int32_t total_count_change() const {
        return this->delegate().total_count_change();
    }

    int32_t current_count() const {
        return this->delegate().current_count();
    }

    int32_t current_count_change() const {
        return this->delegate().current_count_change();
    }

    const dds::core::InstanceHandle last_publication_handle() const {
        return this->delegate().last_publication_handle();
    }
};

} } }/* namespace dds::core::status */

#endif /* OMG_TDDS_CORE_STATUS_STATUS_HPP_ */
